package com.yf.converter.manage;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yf.model.ai.entity.AiMessage;
import com.yf.model.ai.form.AiMessageForm;
import com.yf.model.ai.vo.AiMessagePageVO;
import com.yf.model.ai.vo.UserChatMessageVO;
import org.mapstruct.Mapper;

/**
 * AI 消息记录表-AiMessageConverter
 *
 * @author: YiFei
 * @since : 2025年7月7日 16:58:45
 */
@Mapper(componentModel = "spring")
public interface AiMessageConverter {

    Page<AiMessagePageVO> page2pageVO(Page<AiMessage> page);

    AiMessage form2entity(AiMessageForm aiMessageForm);

    AiMessageForm entity2form(AiMessage aiMessage);

    Page<UserChatMessageVO> page2userChatVO(Page<AiMessage> page);
}
